<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>展览明细</title>
<style type="text/css">
html,body {
	margin: 0;
	padding: 0;
	border: 0;
	width: 100%;
	height: 100%;
}
</style>
<script src="../scripts/boot.js" type="text/javascript"></script>
</head>

<body>
	<div class="mini-toolbar">
		<a class="mini-button" plain="true" onclick="eventItemSelect" iconCls="icon-ok">选择</a>
	</div>
	<div class="mini-fit"><!-- onrowdblclick="edit" 双击事件 -->
		<div id="datagrid1" class="mini-datagrid" allowResize="false" pageSize="20" url="eventItemListData"
			style="width:100%;height:100%;" borderStyle="border-top:none;" idField="id" multiSelect="true"
		>
			<div property="columns">
				<div type="checkcolumn"></div>
				<div field="title" width="200" headerAlign="center" align="left" allowSort="false">标题</div>
				<div field="startTime" width="80" headerAlign="center" align="left" allowSort="false" dateFormat="yyyy-MM-dd HH:mm:ss">开始时间</div>
				<div field="address" width="100" headerAlign="center" align="left" allowSort="false">展览地址</div>
			</div>
		</div>
	</div>
<script type="text/javascript">
var basepath = window.location.pathname + "/../";
//初始化
mini.parse();
var grid = mini.get("datagrid1");
grid.load();
var row ;
function getData(){
	return row;
}

function eventItemSelect(){
	row = grid.getSelected();
	if(row == null){
		mini.alert("请选择一条记录");
		return;
	}
	data = mini.clone(row);
	closeWindow('ok');
}

function closeWindow(action) {
	if (window.CloseOwnerWindow)
		return window.CloseOwnerWindow(action);
	else
		window.close();
}

</script>
</body>
</html>
